class MessageFrame {
  Header? header;
  Object? body;

  MessageFrame({this.header, this.body});

  MessageFrame.fromJson(Map<String, dynamic> json) {
    header = json["header"] == null ? null : Header.fromJson(json["header"]);
    body = json["body"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if (header != null) {
      _data["header"] = header?.toJson();
    }
    _data["body"] = body;
    return _data;
  }
}

class Header {
  int? type;
  int? bizId;
  int? contentType;
  int? ts;
  int? seq;

  Header({this.type, this.bizId, this.contentType, this.ts, this.seq});

  Header.fromJson(Map<String, dynamic> json) {
    type = json["type"];
    bizId = json["bizId"];
    contentType = json["contentType"];
    ts = json["ts"];
    seq = json["seq"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["type"] = type;
    _data["bizId"] = bizId;
    _data["contentType"] = contentType;
    _data["ts"] = ts;
    _data["seq"] = seq;
    return _data;
  }
}
